package Decorator;

/**
 * @ProjectName: 23种设计模式
 * @Package: Decorator
 * @ClassName: FlyCarDecorator
 * @Author: renhan
 * @Description:
 * @Date: 2020/11/29 16:43
 * @Version: 1.0
 */
public class FlyCarDecorator extends CarDecorator {
    public FlyCarDecorator(Car car){
        super(car);
    }

    public void show() {
        this.getCar().show();
        this.fly();
    }

    public void fly() {
        System.out.println("fei");
    }
}
